package com.jenings.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jenings.shop.entity.Manager;
import com.jenings.shop.entity.Notice;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface NoticeMapper extends BaseMapper<Notice> {
    //公告接口
    //查询全部公告
    public List<Notice> selectAll();
    //查询部分公告
    public List<Notice> selectSome(String ggname);
    //查询单独公告
    public Notice selectByte(Integer ggid);
    //删除公告
    public boolean delByte(Integer ggid);
    //增加公告
    public boolean addByte(Notice notice);
}
